home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10890 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: news.delphi.com!usenet
  2. From: JGUILLORY@delphi.com
  3. Newsgroups: comp.lang.c++
  4. Subject: setting line/col??? looked and looked...
  5. Date: 9 Mar 1996 17:19:00 GMT
  6. Organization: Delphi Internet Services Corporation
  7. Message-ID: <4hsei4$rkk@news2.delphi.com>
  8. References: <4erdja$eru@senator-bedfellow.MIT.EDU>
  9. NNTP-Posting-Host: bos1g.delphi.com
  10. X-NewsReader: Rainbow V 1.20.0 for Delphi
  11.  
  12.  
  13. Quoting tcs from a message in comp.lang.c++
  14.  tc>I have searched my book on C++, and can't find a very very very
  15.  tc>simple thing... how to put characters on the screen at a
  16.  tc>specific line/column.  I will be compiling under Linux, with g++,
  17.  tc>so stupid <graph.h> doesn't help me at all.
  18.  tc>Please take pity on a poor miserable lost soul:
  19.  tc>tcs@bates.mit.edu
  20.  
  21.         That's why I hate some of the cheaper 'C' and 'C++' compilers,
  22.     C did not define any standard function for cursor positioning,
  23.     therefore, your C++ book (if it's an ANSI C++ book) had no
  24.     information on cursor positioning.  Some compilers (such as
  25.     Power C by MIX) does not support *ANY* form of cursor positioning.
  26.     I'm not familiar enough with g++ to know if it supports it or not,
  27.     but check for a conio.h file... That's generally the direct screen
  28.     write file.  Worst case scenery, you can try treating it like a
  29.     DOS based system, and either try VT-100 codes (it depends on how you
  30.     setup your termcap file I believe, VT-100 and ANSI are the most
  31.     common, in which case, either would use codes like
  32.     ESC[row;columnH  to position the cursor (where row is the row, and
  33.     column is the column.... (ESC is chr(27) ).  The other alternative
  34.     (recommended against, due to the fact that Linux can load drivers
  35.     for other video cards, and you may have someone using your program
  36.     on a system they call in via terminal or modem.... In which case,
  37.     the following method wouldn't work: Direct Screen Writes.  On a
  38.     Linux/Unix based system, this is almost always out of the question.
  39.     Due to the fact that you can run several programs at once, and
  40.     run a program over the serial port, the screen may be at a location
  41.     other than 0B0000H, 0B8000H, or NOT in memory (so to speak, in
  42.     buffers, which is memory, but then again, could be in virtual
  43.     ram...)
  44.  
  45. `[0;1;34mJohn H. Guillory
  46. `[33mLoving the Lord in '96      `[34mJGuillory@Delphi.Com                                                         
  47.  
  48. WYSIWYTYWG.....What You See Is What You Thought You Would Get.
  49.  
  50.  
  51.